package net.roseindia.web;

import java.io.IOException;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;
 
@Controller
@RequestMapping("/helloworld")
public class HelloWorldController  {
 
	@RequestMapping(method=RequestMethod.GET)
	public ModelAndView helloWorld(){
		ModelAndView modelAndView = new ModelAndView("hello");
		modelAndView.addObject("message","hi francis!");
		
		return modelAndView;
	}
	
}
